package com.hibase.upms.entity.role;

import com.hibase.core.mybatis.entity.BaseDO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author ChrisCui
 * @since 2019-04-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "角色")
public class MdsRole extends BaseDO {

    private static final long serialVersionUID = 1L;

    /**
     * 系统编码
     */
    @ApiModelProperty(value = "系统编码")
    private String sysCode;

    /**
     * 角色代码
     */
//    @UniqueKey(message = "角色代码不能重复")
    @ApiModelProperty(value = "角色代码")
    private String code;

    /**
     * 角色名称
     */
    @ApiModelProperty(value = "角色名称")
    private String name;

    /**
     * 是否是系统内置
     */
    @ApiModelProperty(value = "是否是系统内置")
    private String beSys;

    /**
     * 状态(true 启用 false禁用)
     */
    @ApiModelProperty(value = "状态(true 启用 false禁用)")
    private Boolean beActive;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remarks;

}
